package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.mapper.HotesMapper;
import com.ruoyi.system.mapper.ScenicSpotsMapper;
import com.ruoyi.system.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ScenicSpotOrdersMapper;
import com.ruoyi.system.domain.ScenicSpotOrders;
import com.ruoyi.system.service.IScenicSpotOrdersService;

/**
 * 景区订单模块Service业务层处理
 * 
 * @author lsj
 * @date 2024-12-21
 */
@Service
public class ScenicSpotOrdersServiceImpl implements IScenicSpotOrdersService 
{
    @Autowired
    private ScenicSpotOrdersMapper scenicSpotOrdersMapper;
    @Autowired
    UsersMapper usersMapper;
    @Autowired
    ScenicSpotsMapper scenicSpotsMapper;

    /**
     * 查询景区订单模块
     * 
     * @param scenicSpotOrderid 景区订单模块主键
     * @return 景区订单模块
     */
    @Override
    public ScenicSpotOrders selectScenicSpotOrdersByScenicSpotOrderid(Long scenicSpotOrderid)
    {
        return scenicSpotOrdersMapper.selectScenicSpotOrdersByScenicSpotOrderid(scenicSpotOrderid);
    }

    /**
     * 查询景区订单模块列表
     * 
     * @param scenicSpotOrders 景区订单模块
     * @return 景区订单模块
     */
    @Override
    public List<ScenicSpotOrders> selectScenicSpotOrdersList(ScenicSpotOrders scenicSpotOrders)
    {
        return scenicSpotOrdersMapper.selectScenicSpotOrdersList(scenicSpotOrders);
    }

    /**
     * 新增景区订单模块
     * 
     * @param scenicSpotOrders 景区订单模块
     * @return 结果
     */
    @Override
    public int insertScenicSpotOrders(ScenicSpotOrders scenicSpotOrders)
    {
        return scenicSpotOrdersMapper.insertScenicSpotOrders(scenicSpotOrders);
    }

    /**
     * 修改景区订单模块
     * 
     * @param scenicSpotOrders 景区订单模块
     * @return 结果
     */
    @Override
    public int updateScenicSpotOrders(ScenicSpotOrders scenicSpotOrders)
    {
        return scenicSpotOrdersMapper.updateScenicSpotOrders(scenicSpotOrders);
    }

    /**
     * 批量删除景区订单模块
     * 
     * @param scenicSpotOrderids 需要删除的景区订单模块主键
     * @return 结果
     */
    @Override
    public int deleteScenicSpotOrdersByScenicSpotOrderids(Long[] scenicSpotOrderids)
    {
        return scenicSpotOrdersMapper.deleteScenicSpotOrdersByScenicSpotOrderids(scenicSpotOrderids);
    }

    /**
     * 删除景区订单模块信息
     * 
     * @param scenicSpotOrderid 景区订单模块主键
     * @return 结果
     */
    @Override
    public int deleteScenicSpotOrdersByScenicSpotOrderid(Long scenicSpotOrderid)
    {
        return scenicSpotOrdersMapper.deleteScenicSpotOrdersByScenicSpotOrderid(scenicSpotOrderid);
    }
    public int addScenicSpotOrders(ScenicSpotOrders scenicSpotOrders){
        return scenicSpotOrdersMapper.addScenicSpotOrders(scenicSpotOrders);
    }
}
